package com.chainshop.product.service.impl;

import com.chainshop.product.domain.ItemCategory;
import com.chainshop.product.mapper.ProductCategoryMapper;
import com.chainshop.product.service.ProductCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductCategoryServiceImpl implements ProductCategoryService {
    @Autowired
    private ProductCategoryMapper productCategoryMapper;
    @Override
    public List<ItemCategory> getProductCategory() {
        List<ItemCategory> itemCategories = productCategoryMapper.selectAll();
        return itemCategories;
    }
}
